package cn.shiro.shiroservice.moudle.db.service.impl;

import cn.shiro.shiroservice.moudle.db.mapper.DatabaseUserMapper;
import cn.shiro.shiroservice.moudle.db.pojo.entity.DatabaseUser;
import cn.shiro.shiroservice.moudle.db.service.DatabaseUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author apple
 * @description 针对表【database_user】的数据库操作Service实现
 * @createDate 2024-01-29 17:50:55
 */
@Service
public class DatabaseUserServiceImpl implements DatabaseUserService {

    @Resource
    private DatabaseUserMapper databaseUserMapper;
    @Override
    public List<DatabaseUser> getDatabaseInfo(String account) {
        return databaseUserMapper.getDatabaseInfo(account);
    }

    @Override
    public DatabaseUser getDatabase(String account, String username) {
        return databaseUserMapper.getDatabase(account,username);
    }
}




